#ifndef ROOM_H
#define ROOM_H
#include <vector>
#include "Session.h"
#include <boost/bind.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/enable_shared_from_this.hpp>
#include <boost/asio.hpp>
///Room.
class Room
{
public:
	/** */
	void join(SharedSession participant)
	{
		participants_.insert(participants_.end(),participant);
	}
	/** */
	void broadcast(MyMsg& m)
	{
		for (std::vector<SharedSession>::iterator it=participants_.begin();it!=participants_.end();it++)
			(*it)->async_write(m);
	}
	
private:
	std::vector<SharedSession> participants_;
	
};
#endif